package com.richapp.launcher.scene.conditions.status;

import com.richapp.launcher.database.system.mode.DeviceModel;
import com.richapp.launcher.scene.abstracts.SceneAbstractStatusConditions;
import com.richapp.launcher.scene.interfaces.ISceneConditions;
import com.richapp.launcher.scene.interfaces.ISceneStatusConditions;

public class SceneStatusDimmingConditions extends SceneAbstractStatusConditions {

	public SceneStatusDimmingConditions() {
	}

	@Override
	public int getConditionType() {
		return ISceneConditions.SCENE_CONDITION_TYPE_STATUS;
	}

	@Override
	public int getConditionSubType() {
		return ISceneStatusConditions.SCENE_CONDITION_SUB_TYPE_STATUS_DIMMING;
	}

	@Override
	public boolean checkCondition(String sceneName) {
		DeviceModel device = getDevice();
		if(device != null){
			if(device.getDeviceStatus().equals(getDimmingValue())){
				return true;
			}
		}
		return false;
	}

}
